import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router'
require('es6-promise').polyfill();
import routes from './router/router.js'
import './vendor/js/fontsize.js'
import './directive/directive.js'
import './vendor/js/getUrlParam.js'
import './vendor/js/jssdk.js'
import './common/common.js'
import './vendor/css/swiper.min.css'
import './vendor/css/flex.css'
import './common/main.css'
import './vendor/css/main.css'
import {domain} from './api/api.js'

import vueLazyLoad from 'vue-lazyload'


Vue.use(VueRouter);
Vue.use(vueLazyLoad,{
  preload: 1.3,
  //error: '',
  //loading: '',
  attempt: 1
});
const router = new VueRouter({
    routes
});
router.beforeEach((to, from, next) => {
    next()
});
new Vue({
    el: '#app',
    components: { App },
    router,
    render:h=>h(App)
});
